Câu ví dụ
- thêm câu ví dụ: 1 2
- Not only is the function type (->) r a functor and an applicative functor, but it's also a monad.
Kiểu hàm (->) r không chỉ là một functor và functor áp dụng, mà nó còn là một monad. - Holds if this is the Function type.
Viết thành function thì nó thế này - Function type in Swift is a first class type.
Function trong Swift kiểu first-class. - However, when you use a function type as a parameter itself, you might write something like this:
Tuy nhiên, khi bạn sử dụng 1 hàm type như chính parameter, bạn có thể viết như thế này: - In the chapter about applicatives, we saw that the function type, (->) r is an instance of Functor.
Trong chương nói về các áp dụng (applicative), ta đã thấy rằng kiểu hàm, (->) r là một thực thể của Functor.